projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0e4af8
)
(main): Pass the -u option to sort in ctags mode.
author
Francesco Potortì
<pot@gnu.org>
Tue, 2 Jan 2007 11:28:13 +0000
(11:28 +0000)
committer
Francesco Potortì
<pot@gnu.org>
Tue, 2 Jan 2007 11:28:13 +0000
(11:28 +0000)
lib-src/etags.c
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index bab09d77bacb475f4d68fd0ea8a173d5cd06f9ba..00c4d0cc22ec802d844abfb6d2fd499e2ed8be16 100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-1460,8
+1460,11
@@
main (argc, argv)
if (CTAGS)
if (append_to_tagfile || update)
{
- char cmd[2*BUFSIZ+10];
- sprintf (cmd, "sort -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile);
+ char cmd[2*BUFSIZ+20];
+ /* Maybe these should be used:
+ setenv ("LC_COLLATE", "C", 1);
+ setenv ("LC_ALL", "C", 1); */
+ sprintf (cmd, "sort -u -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile);
exit (system (cmd));
}
return EXIT_SUCCESS;